#include "imageview.h"
#include "ui_imageview.h"

imageView::imageView(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::imageView)
{
    ui->setupUi(this);

    QString imagePath = "C:/Users/Administrator/Documents/zbsjPlayer-qmake/resources/picture/rec1.jpg";

    QPixmap pixmap(imagePath);

    if (!pixmap.isNull()) {
        qDebug() << "图片加载成功！宽度：" << pixmap.width() << "高度：" << pixmap.height();
    } else {
        qDebug() << "图片加载失败！";
    }

    qDebug() <<" Dir:" << QApplication::applicationDirPath();

    ui->window->setPixmap(pixmap);
    ui->window->setAutoFillBackground(true);

}

imageView::~imageView()
{
    delete ui;
}
